﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.Runtime.Serialization;

namespace IM.Protocols.MSN
{
    [Serializable]
    [XmlRoot("Protocol")]
    public class SettingsData
    {
        [XmlAttribute("type")]
        public String Type
        {
            get;
            set;
        }

        [XmlAttribute("name")]
        public String InstanceName
        {
            get;
            set;
        }

        [XmlAttribute("enabled")]
        public bool Enabled
        {
            get;
            set;
        }

        [XmlElement("Login")]
        public String Login
        {
            get;
            set;
        }

        [XmlElement("Password")]
        public String Password
        {
            get;
            set;
        }

        public SettingsData(String login, String password)
        {
            this.Login = login;
            this.Password = password;
        }

        public SettingsData()
        {
            this.Type = "MSN";
            this.InstanceName = this.Type;
        }
    }
}
